﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ADONETDataServicesExtension.Providers;
using System.Linq.Expressions;
using ADONETDataServicesExtension.Utils;

namespace ADONETDataServicesExtension
{
    public class ExpandSegment : FrameworkEncapsulatedType<System.Data.Services.ExpandSegment>
    {
        private const string FrameworkTypeName = "System.Data.Services.ExpandSegment";

        public ExpandSegment(System.Data.Services.ExpandSegment expandSegment)
            : base(expandSegment)
        {
        }
        public ExpandSegment(string name, Expression filter, int maxResultsExpected, ResourceContainer container)
        {
            FrameworkObject = ReflectionHelper.CreateInstance<System.Data.Services.ExpandSegment>(FrameworkTypeName, name, filter, maxResultsExpected, container.FrameworkObject);
        }
    }
}
